package com.witmed.home.view.resp

import android.content.Context
import com.witmed.lib_common.room.VideoDataBase
import com.witmed.lib_common.room.VideoHistory
import com.witmed.lib_http.ResponseData
import com.witmed.lib_http.RetrofitManager
import com.witmed.lib_http.entity.VideoList
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.withContext

class VideoHistoryRespository {


    suspend fun selectList(context: Context): Flow<List<VideoHistory>> {

          return  VideoDataBase.getDataBase(context).videoDao().getList().flowOn(Dispatchers.IO)

    }
}